def solve(strs):
    strs = strs.strip()
    strs_list = strs.split()
    # print(strs_list)
    res = []
    # for i in range(len(strs_list) - 1, -1, -1):
    #     res.append(strs_list[i])

    strs_list = strs_list[::-1]

    return " ".join(strs_list)


if __name__ == "__main__":
    strs = "the sky is blue"
    print(solve(strs))
